package com.example.littleSpider.myapplication.activity;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;

import com.example.littleSpider.myapplication.R;

import butterknife.ButterKnife;
import butterknife.OnClick;
import butterknife.Unbinder;
import es.dmoral.toasty.Toasty;

/**
 * 退款弹窗界面
 * Created by littleSpider on 2017/12/19.
 */

public class RefundActivity extends Activity {

    Unbinder unbinder;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_dialog_refund);
        unbinder = ButterKnife.bind(this);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        unbinder.unbind();
    }

    @OnClick(R.id.iv_close)
    public void close(){
        finish();
    }

    @OnClick(R.id.btn_cancel)
    public void cancel(){
        finish();
    }

    @OnClick(R.id.btn_commit)
    public void commit(){
        Toasty.warning(RefundActivity.this, "提交成功").show();
        finish();
    }
}
